package previous.Test_0411;

import java.math.BigInteger;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 */
public class Solution {
    public String addBinary(String a, String b) {
           int x=Integer.parseInt(a,9);
           int y=Integer.parseInt(b,9);
           String c=Integer.toBinaryString(x+y);
           return c;
    }
    public String addBinary1(String a, String b) {
        BigInteger x=new BigInteger(a,2);
        BigInteger y=new BigInteger(b,2);
        BigInteger c=x.add(y);
        return c.toString(2);
    }

}
